package cn.fd.service;

import cn.fd.domain.Account;

import java.io.IOException;
import java.util.List;

/**
 * @Author 田俊龙
 * @Date 2022/1/7
 */
public interface AccountService {
    //查询所有账户
    List<Account> findAll() throws IOException;

    //新增账户
    void save(Account account) throws IOException;

    //修改账户
    void update(Account account);

    //删除账户
    void delete(int id);

    //id查找账户
    Account findById(int id);

    //登录
    Account login(Account account);
}
